// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import vuex from './vuex/index'
import App from './App'
 

import router from './router'
import axios from 'axios'
import initRichText from './base/js/html5Editor'
import VueLazyload from 'vue-lazyload'
 import {Message} from 'iview';
import 'iview/dist/styles/iview.css';
import plus from 'vue-h5-plus'
Vue.use(plus)
initRichText()
 //Vue.use(iView);
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '../static/img/icon/denglu_gengxin_icon/logo_denglu@2x.png',
  attempt: 6
})
 
Vue.config.productionTip = false
Vue.prototype.$Message=Message;
Vue.prototype.$http = axios

Vue.prototype.route = (str, id, type, typeId) => {
	$('#app').scrollTop(0)
	router.push({name: str,params:{id: id}, query:{type:type, id: typeId}})
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  vuex,
  components: { App },
  template: '<App/>'
})
